<?php
/**
 * User: tridungpham
 * Date: 3/21/11
 * Time: 10:43 AM
 */
 
class ExtendedController extends Controller
{
    function __construct()
    {        
        $this->loadLibrary('Utility');
        $this->loadLibrary('Session');     
        $session = Session::getInstance();
        if(!$session->isExist('id'))
        {
            $session->set('ref',substr($_SERVER['PATH_INFO'],1));
            Utility::redirect('login');
            exit();
        }
    }    
}
